//
//  HZZFAdapterNativeAdViewDelegate.h
//  HZZFAdSDK
//
//  Created by 早范 on 2025/5/4.
//

#ifndef HZZFAdapterNativeAdViewDelegate_h
#define HZZFAdapterNativeAdViewDelegate_h

#import "HZZFAdapterCommonDefine.h"

NS_ASSUME_NONNULL_BEGIN

@class HZZFAdapterNativeAdData;

@protocol HZZFAdapterNativeAdViewDelegate <NSObject>
/**
 平台类型
 */
- (nullable HZZFAdapterPlatform)hzzf_platform;

/**
 注册广告视图
 */
- (void)hzzf_registViews:(NSArray<UIView *> *_Nullable)clickViews;

/**
 取消注册
 */
- (void)hzzf_unRegistView;

/**
 广告关闭事件，手动调用
 */
- (void)hzzf_close;


- (nullable HZZFAdapterNativeAdData *)hzzf_nativeAdData;

/**
 获取视频视图
 */
- (nullable UIView *)hzzf_mediaViewForWidth:(CGFloat)width;

/**
 平台logo视图
 */
- (nullable UIView *)hzzf_logoView;

/**
 加载图片
 */
- (void)hzzf_loadImage:(UIImageView *)imageView placeholder:(UIImage *_Nullable)placeholder;

/**
 重新设置rootViewController
 */
- (void)hzzf_setRootViewController:(UIViewController *)rootViewController;

/**
 注册谷歌的媒体视图，仅谷歌平台生效
 */
- (void)hzzf_registerAdMobView:(UIView *)view viewType:(HZZFAdSDKNativeAdMobAssetType)viewType;

/**
 平台标记视图，内部使用的标记视图，外部媒体请勿使用
 */
- (nullable UIButton*)hzzf_tagBtn;

@end

NS_ASSUME_NONNULL_END

#endif /* HZZFAdapterNativeAdViewDelegate_h */
